﻿using System;
using System.Collections.ObjectModel;
using Newtonsoft.Json;

namespace OpenNOSClient
{
    public abstract class BaseItem : TitleDescriptionItem
    {
        public DateTime Published { get; set; }

        [JsonProperty(PropertyName = "last_update")]
        public DateTime LastUpdate { get; set; }

        public string Link { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public ReadOnlyCollection<string> Keywords { get; set; }
    }
}
